/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gui2;

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.gui.MonCompte;

/**
 *
 * @author top
 */
public class Index extends javax.swing.JFrame {

    /**
     * Creates new form Index
     */
    public Index() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelHaut = new javax.swing.JPanel();
        panelLogo = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        panelBoutons = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        boutonUtilisateurs = new javax.swing.JButton();
        boutonProjets = new javax.swing.JButton();
        boutonAo = new javax.swing.JButton();
        boutonProspects = new javax.swing.JButton();
        boutonEntreES = new javax.swing.JButton();
        boutonSortiesDetails = new javax.swing.JButton();
        boutonMesConges = new javax.swing.JButton();
        panelBas = new javax.swing.JPanel();
        boutonMonCompte = new javax.swing.JButton();
        boutonQuitter = new javax.swing.JButton();
        panelCentre = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setPreferredSize(new java.awt.Dimension(1250, 700));

        panelHaut.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(103, 153, 255)));
        panelHaut.setPreferredSize(new java.awt.Dimension(1050, 100));
        panelHaut.setLayout(new java.awt.BorderLayout());

        panelLogo.setPreferredSize(new java.awt.Dimension(200, 100));

        javax.swing.GroupLayout panelLogoLayout = new javax.swing.GroupLayout(panelLogo);
        panelLogo.setLayout(panelLogoLayout);
        panelLogoLayout.setHorizontalGroup(
            panelLogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 200, Short.MAX_VALUE)
        );
        panelLogoLayout.setVerticalGroup(
            panelLogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 98, Short.MAX_VALUE)
        );

        panelHaut.add(panelLogo, java.awt.BorderLayout.LINE_START);

        jLabel1.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        jLabel1.setText("BIENVENU DANS VOTRE ESPACE DE TRAVAIL");
        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        panelHaut.add(jLabel1, java.awt.BorderLayout.CENTER);

        jLabel2.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        jLabel2.setText("MAMADOU TOP");
        jLabel2.setPreferredSize(new java.awt.Dimension(325, 14));
        panelHaut.add(jLabel2, java.awt.BorderLayout.LINE_END);

        getContentPane().add(panelHaut, java.awt.BorderLayout.PAGE_START);

        panelBoutons.setBackground(new java.awt.Color(223, 242, 255));
        panelBoutons.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(103, 153, 255)));
        panelBoutons.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        panelBoutons.setPreferredSize(new java.awt.Dimension(200, 575));

        jButton1.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        jButton1.setText("ACCEUIL");

        boutonUtilisateurs.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonUtilisateurs.setText("UTILISATEURS");
        boutonUtilisateurs.setHorizontalAlignment(javax.swing.SwingConstants.LEADING);

        boutonProjets.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonProjets.setText("PROJETS");

        boutonAo.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonAo.setLabel("AO");

        boutonProspects.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonProspects.setText("PROSPECTS");

        boutonEntreES.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonEntreES.setText("ENTREES");

        boutonSortiesDetails.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonSortiesDetails.setText("SORTIES ");

        boutonMesConges.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonMesConges.setText("MES CONGES");

        javax.swing.GroupLayout panelBoutonsLayout = new javax.swing.GroupLayout(panelBoutons);
        panelBoutons.setLayout(panelBoutonsLayout);
        panelBoutonsLayout.setHorizontalGroup(
            panelBoutonsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelBoutonsLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelBoutonsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(boutonUtilisateurs, javax.swing.GroupLayout.DEFAULT_SIZE, 178, Short.MAX_VALUE)
                    .addComponent(boutonProjets, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(boutonAo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(boutonProspects, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(boutonEntreES, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(boutonSortiesDetails, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(boutonMesConges, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        panelBoutonsLayout.setVerticalGroup(
            panelBoutonsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelBoutonsLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(jButton1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(boutonUtilisateurs)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(boutonProjets)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(boutonAo)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(boutonProspects)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(boutonEntreES)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(boutonSortiesDetails)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(boutonMesConges)
                .addContainerGap(279, Short.MAX_VALUE))
        );

        getContentPane().add(panelBoutons, java.awt.BorderLayout.LINE_START);

        panelBas.setBackground(new java.awt.Color(223, 242, 255));
        panelBas.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(103, 153, 255)));
        panelBas.setPreferredSize(new java.awt.Dimension(1250, 50));

        boutonMonCompte.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonMonCompte.setText("Mon Compte");

        boutonQuitter.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        boutonQuitter.setText("QUITTER");

        javax.swing.GroupLayout panelBasLayout = new javax.swing.GroupLayout(panelBas);
        panelBas.setLayout(panelBasLayout);
        panelBasLayout.setHorizontalGroup(
            panelBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelBasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(boutonMonCompte)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 981, Short.MAX_VALUE)
                .addComponent(boutonQuitter)
                .addGap(21, 21, 21))
        );
        panelBasLayout.setVerticalGroup(
            panelBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelBasLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelBasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(boutonMonCompte)
                    .addComponent(boutonQuitter))
                .addContainerGap())
        );

        getContentPane().add(panelBas, java.awt.BorderLayout.PAGE_END);

        panelCentre.setBackground(new java.awt.Color(223, 242, 255));
        panelCentre.setBorder(javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(103, 153, 255)));
        panelCentre.setFont(new java.awt.Font("Verdana", 3, 14)); // NOI18N
        panelCentre.setPreferredSize(new java.awt.Dimension(1050, 550));

        javax.swing.GroupLayout panelCentreLayout = new javax.swing.GroupLayout(panelCentre);
        panelCentre.setLayout(panelCentreLayout);
        panelCentreLayout.setHorizontalGroup(
            panelCentreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1048, Short.MAX_VALUE)
        );
        panelCentreLayout.setVerticalGroup(
            panelCentreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 573, Short.MAX_VALUE)
        );

        getContentPane().add(panelCentre, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Index.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Index().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton boutonAo;
    private javax.swing.JButton boutonEntreES;
    private javax.swing.JButton boutonMesConges;
    private javax.swing.JButton boutonMonCompte;
    private javax.swing.JButton boutonProjets;
    private javax.swing.JButton boutonProspects;
    private javax.swing.JButton boutonQuitter;
    private javax.swing.JButton boutonSortiesDetails;
    private javax.swing.JButton boutonUtilisateurs;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel panelBas;
    private javax.swing.JPanel panelBoutons;
    private javax.swing.JPanel panelCentre;
    private javax.swing.JPanel panelHaut;
    private javax.swing.JPanel panelLogo;
    // End of variables declaration//GEN-END:variables
}
